// components/popup/storeSelect/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    list: Array
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 关闭
    onClose () {
      this.triggerEvent('close')
    },
    // 选择
    onSelect (event) {
      let info = event.currentTarget.dataset.info
      this.triggerEvent('select', {
        info: info
      }, {})
    },
    // 查看更多
    onMore () {
      wx.navigateTo({
        url: `/pages/home/nearbyServicePoint/nearbyServicePoint`
      })
      // this.triggerEvent('close');
    }
  }
});
